package 作业._p114实训1三;

public class Shape测试类 {
    public static void main(String[] args) {
        //创建三角形
        Triangle tran = new Triangle("三角形");
        tran.Area();
        //创建矩形
        Rectangle rec = new Rectangle("矩形");
        rec.Area();
    }
}
